package com.tomas.demo.controller.upload;

import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Tomas
 * @date 16/5/10 下午5:18
 * @what
 */
@Slf4j
@Controller
@RequestMapping(value = "/webUploader")
public class WebUploaderController {

    @RequestMapping(method= RequestMethod.GET)
    public String message_cn(String foo ,Model model){
        log.info("请求上传接口    " + foo);
        model.addAttribute("foo",foo);
        return "index";
    }


}
